<div class="item-detail-dialog training-tech">
  <div class="item-detail-dialog-header">
    <div class="title-txt">
      <span>新增检验记录</span>
    </div>
  </div>
  <div desc="autofocus-input">
    <input type="text" autofocus="true" 
      style="opacity: 0;width: 0; height: 0;" />
  </div>
  <div class="item-detail-dialog-content">
    <form name="addForm" novalidate>
      <div class="row-item">
        <div class="fixed-left-label"><b>*</b>检测时间：</div>
        <div class="right-value">
          <input type="text" ng-datepicker name="checkTime" required 
            ng-model="addTextCode.addItem.checkTime"/>
        </div>
        <span class="error-tip"
          ng-show="(addForm.$submitted || addForm.checkTime.$dirty) && addForm.checkTime.$error.required">
          必填
        </span>
      </div>
      <div class="row-item">
        <div class="fixed-left-label"><b>*</b>下次检测时间：</div>
        <div class="right-value">
          <input type="text" ng-datepicker name="nextChecktime" required 
            ng-model="addTextCode.addItem.nextChecktime"/>
        </div>
        <span class="error-tip"
          ng-show="(addForm.$submitted || addForm.nextChecktime.$dirty) && addForm.nextChecktime.$error.required">
          必填
        </span>
      </div>
      <div class="row-item">
        <div class="fixed-left-label"><b>*</b>检测结果：</div>
        <div class="right-value"> 
          <div class="line test-results">
            <input class="test-form-control" name="checkResult" required 
              type="radio" value="1"
              ng-model="addTextCode.addItem.checkResult"/>符合要求
          </div>
          <div class="line test-results">
            <input class="test-form-control" name="checkResult" required
              type="radio" value="2"
              ng-model="addTextCode.addItem.checkResult"/>不符合要求
          </div>
        </div>
        <span class="error-tip"
          ng-show="(addForm.$submitted || addForm.checkResult.$dirty) && addForm.checkResult.$error.required">
          必填
        </span>
      </div>
      <div>
        <common-attachment-upload
          component-id="cp2"
          file-type="image"
          pick-btn-id="avatar_attachment_picker"
          upload-url="{{fileUploadUrl.deviceCheckRecord}}"
          file-list="addTextCode.attachments">
        </common-attachment-upload>
      </div>
    </form>     
  </div>
  <div class="item-detail-dialog-footer">
    <a class="pa-btn" ng-click="addTextCode.submit(addForm)">
      <i class="fa fa-save"></i>
      <span class="ml5">确定</span>
    </a>
    <a class="pa-btn" ng-click="closeThisDialog()">
      <i class="fa fa-times"></i>
      <span class="ml5">取消</span>
    </a>
  </div>
</div>